package com.example.myproject.model;

import com.baomidou.mybatisplus.annotation.*;
import com.example.myproject.model.enums.PromotionType;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("promotion")
public class Promotion {

    @TableId(value = "promotion_id", type = IdType.AUTO)
    private Long promotionId;

    private Long  torrentId;

    private String promotionName;

    private LocalDateTime startTime;
    private LocalDateTime endTime;

    private Double downloadRate;     // 新增列
    private Double uploadRate;       // 已存在列

    @TableField("promotion_type")
    private PromotionType promotionType;
}
